/**
 * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function (config) {
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	config.height = '600px';
	config.width = 'auto';
	// config.removePlugins ='toolbar';

	config.extraPlugins = 'multiimage';

	config.toolbar = [{
			name : 'document',
			items : ['Source', '-', '-', 'Templates']
		}, {
			name : 'clipboard',
			items : ['Paste', 'PasteText', 'PasteFromWord', '-', ]
		},
		{
			name : 'basicstyles',
			items : ['Bold', 'Italic', "Underline", "Strike", "TextColor", "BGColor"]
		}, {
			name : 'link',
			items : ["Link", "Unlink", "Anchor"]
		}, {
			name : 'media',
			items : [ "Flash", "Youtube"]
		}, {
			name : 'style',
			items : ['Styles', 'Format', 'Font','FontSize']
		},{
			name : 'format',
			items : ["NumberedList", "BulletedList", "Blockquote", "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock"]
		},
		
	];

	config.allowedContent = true;
	config.extraAllowedContent = 'img[src];';
	config.extraPlugins = 'multiimage,youtube';
	// config.extraPlugins = 'image2';
	config.contentsCss = base_url + '/template/admin/ckeditor/contents.css';
	// config.removePlugins = 'elementspath,save,font';
	config.filebrowserImageBrowseUrl = base_url + 'template/admin/ckfinder/ckfinder.html?type=Images';
	// config.filebrowserImageUploadUrl = '/ckf/core/connector/php/connector.php?command=QuickUpload&type=Images';
};